<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('【】列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>面试回数：</label>
                                <input type="text" name="intNo"/>
                            </li>
                            <li>
                                <label>面试者姓名：</label>
                                <input type="text" name="intName"/>
                            </li>
                            <li>
                                <label>联系电话：</label>
                                <input type="text" name="intTel"/>
                            </li>
                            <li>
                                <label>学历：</label>
                                <input type="text" name="intDegree"/>
                            </li>
                            <li>
                                <label>毕业时间：</label>
                                <input type="text" class="time-input" placeholder="请选择毕业时间" name="intGdate"/>
                            </li>
                            <li>
                                <label>毕业院校：</label>
                                <input type="text" name="intGraduate"/>
                            </li>
                            <li>
                                <label>专业：</label>
                                <input type="text" name="intSpeciality"/>
                            </li>
                            <li>
                                <label>主要技术：</label>
                                <input type="text" name="intTechnology"/>
                            </li>
                            <li>
                                <label>语言水平：</label>
                                <input type="text" name="intLanguage"/>
                            </li>
                            <li>
                                <label>现在的公司：</label>
                                <input type="text" name="intCompany"/>
                            </li>
                            <li>
                                <label>简历的来源 三种①内部推荐
②HR
③社会招聘：</label>
                                <input type="text" name="intOrigin"/>
                            </li>
                            <li>
                                <label>内部推荐人：</label>
                                <input type="text" name="intUser"/>
                            </li>
                            <li>
                                <label>简历执行人 负责人：</label>
                                <input type="text" name="intAction"/>
                            </li>
                            <li>
                                <label>参考的ban范围：</label>
                                <input type="text" name="intBan"/>
                            </li>
                            <li>
                                <label>参考的职位：</label>
                                <input type="text" name="intJob"/>
                            </li>
                            <li>
                                <label>添加人：</label>
                                <input type="text" name="cu"/>
                            </li>
                            <li>
                                <label>添加时间：</label>
                                <input type="text" class="time-input" placeholder="请选择添加时间" name="ct"/>
                            </li>
                            <li>
                                <label>修改人：</label>
                                <input type="text" name="uu"/>
                            </li>
                            <li>
                                <label>修改时间：</label>
                                <input type="text" class="time-input" placeholder="请选择修改时间" name="ut"/>
                            </li>
                            <li>
                                <label>是否删除：</label>
                                <input type="text" name="isDeleted"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:interview:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:interview:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:interview:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:interview:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:interview:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:interview:remove')}]];
        var prefix = ctx + "system/interview";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "【】",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'intId',
                    title: '面试者编号 以时间命名',
                    visible: false
                },
                {
                    field: 'intFile',
                    title: '简历文件路径'
                },
                {
                    field: 'intNo',
                    title: '面试回数'
                },
                {
                    field: 'intStatus',
                    title: '面试状态'
                },
                {
                    field: 'intName',
                    title: '面试者姓名'
                },
                {
                    field: 'intSex',
                    title: '性别'
                },
                {
                    field: 'intTel',
                    title: '联系电话'
                },
                {
                    field: 'intDegree',
                    title: '学历'
                },
                {
                    field: 'intGdate',
                    title: '毕业时间'
                },
                {
                    field: 'intGraduate',
                    title: '毕业院校'
                },
                {
                    field: 'intSpeciality',
                    title: '专业'
                },
                {
                    field: 'intTechnology',
                    title: '主要技术'
                },
                {
                    field: 'intLanguage',
                    title: '语言水平'
                },
                {
                    field: 'intCompany',
                    title: '现在的公司'
                },
                {
                    field: 'intOrigin',
                    title: '简历的来源 三种①内部推荐
②HR
③社会招聘'
                },
                {
                    field: 'intUser',
                    title: '内部推荐人'
                },
                {
                    field: 'intAction',
                    title: '简历执行人 负责人'
                },
                {
                    field: 'intBan',
                    title: '参考的ban范围'
                },
                {
                    field: 'intJob',
                    title: '参考的职位'
                },
                {
                    field: 'cu',
                    title: '添加人'
                },
                {
                    field: 'ct',
                    title: '添加时间'
                },
                {
                    field: 'uu',
                    title: '修改人'
                },
                {
                    field: 'ut',
                    title: '修改时间'
                },
                {
                    field: 'isDeleted',
                    title: '是否删除'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.intId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.intId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>